/**  
 * All rights Reserved, Designed By www.woniuxy.com
 * @Title:  Account.java   
 * @Package com.woniu.domain   
 * @Description:    Description  
 * @author: 蜗牛学院  
 * @date:   2019年8月24日 上午10:23:49
 * @user:   Administrator  
 * @version V1.0 
 * @Copyright: 2019 www.woniuxy.com Inc. All rights reserved. 
 * 注意：本内容仅限于成都蜗牛创想科技有限公司，禁止外泄以及用于其他的商业目
 */ 
package com.woniu.domain;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * @author Administrator
 *
 */
@Entity
@Table(name="t_music")
public class Music {
	private int mid;
	private String mname;
	private String singer;
	private String longTime;
	private MusicType musicType;
	private int collectCount;
	private String description;
	/**
	 * @return the mid
	 */
	@Id
	@GeneratedValue
	public int getMid() {
		return mid;
	}
	/**
	 * @param mid the mid to set
	 */
	public void setMid(int mid) {
		this.mid = mid;
	}
	/**
	 * @return the mname
	 */
	public String getMname() {
		return mname;
	}
	/**
	 * @param mname the mname to set
	 */
	public void setMname(String mname) {
		this.mname = mname;
	}
	/**
	 * @return the singer
	 */
	public String getSinger() {
		return singer;
	}
	/**
	 * @param singer the singer to set
	 */
	public void setSinger(String singer) {
		this.singer = singer;
	}
	/**
	 * @return the longTime
	 */
	public String getLongTime() {
		return longTime;
	}
	/**
	 * @param longTime the longTime to set
	 */
	public void setLongTime(String longTime) {
		this.longTime = longTime;
	}
	/**
	 * @return the musicType
	 */
	@ManyToOne
	@JoinColumn(name="type_id")
	public MusicType getMusicType() {
		return musicType;
	}
	/**
	 * @param musicType the musicType to set
	 */
	public void setMusicType(MusicType musicType) {
		this.musicType = musicType;
	}
	/**
	 * @return the collectCount
	 */
	public int getCollectCount() {
		return collectCount;
	}
	/**
	 * @param collectCount the collectCount to set
	 */
	public void setCollectCount(int collectCount) {
		this.collectCount = collectCount;
	}
	/**
	 * @return the description
	 */
	public String getDescription() {
		return description;
	}
	/**
	 * @param description the description to set
	 */
	public void setDescription(String description) {
		this.description = description;
	}
	@Override
	public String toString() {
		return "Music [mid=" + mid + ", mname=" + mname + ", singer=" + singer + ", longTime=" + longTime
				+ ", musicType=" + musicType + ", collectCount=" + collectCount + ", description=" + description + "]";
	}
	public Music(int mid, String mname, String singer, String longTime, MusicType musicType, int collectCount,
			String description) {
		super();
		this.mid = mid;
		this.mname = mname;
		this.singer = singer;
		this.longTime = longTime;
		this.musicType = musicType;
		this.collectCount = collectCount;
		this.description = description;
	}
	public Music() {
		super();
		// TODO Auto-generated constructor stub
	}
	
}
